import { apiClient } from '@/utils/apiClient';

export const APIHost = '';

export const BaseService = {
    /**
     * 文件上传
     * @param {string} channel - 上传渠道
     * @param {FormData} formData - 表单数据
     * @returns {Promise<Object>} 上传结果
     */
    async uploadFile(channel, formData) {
        return apiClient.upload(`/api/file/upload/${channel}`, formData);
    }
};